New and improved algorithms for unordered tree inclusion
نویسندگان
چکیده
The tree inclusion problem is, given two node-labeled trees P and T (the “pattern tree” the “target tree”), to locate every minimal subtree in (if any) that can be obtained by applying a sequence of node insertion operations P. Although ordered is solvable polynomial time, unordered NP-hard. currently fastest algorithm for latter classic Kilpeläinen Mannila from 1995 runs O(d22dmn) where m n are sizes pattern target trees, respectively, d degree tree. Here, we develop new O(d2dmn2) improving exponential factor 22d 2d considering particular type ancestor-descendant relationships suitable dynamic programming. We also study restricted variants problem.
منابع مشابه
New Algorithms for Unordered Tree Inclusion
The tree inclusion problem is, given two node-labeled trees P and T (the “pattern tree” and the “text tree”), to locate every minimal subtree in T (if any) that can be obtained by applying a sequence of node insertion operations to P . The ordered tree inclusion problem is known to be solvable in polynomial time while the unordered tree inclusion problem is NP-hard. The currently fastest algori...
متن کاملExact and approximate algorithms for unordered tree matching
We consider the problem of comparison between unordered trees, i.e., trees for which the order among siblings is unimportant. The criterion for comparison is the distance as measured by a weighted sum of the costs of deletion, insertion and relabel operations on tree nodes. Such comparisons may contribute to pattern recognition efforts in any field (e.g., genetics) where data can naturally be c...
متن کاملBit-Parallel Tree Pattern Matching Algorithms for Unordered Labeled Trees
The following tree pattern matching problem is considered: Given two unordered labeled trees P and T , find all occurrences of P in T . Here P and T are called a pattern tree and a target tree, respectively. We first introduce a new problem called the pseudo-tree pattern matching problem. Then we show two efficient bit-parallel algorithms for the pseudo-tree pattern matching problem. One runs i...
متن کاملFaster Bit-Parallel Algorithms for Unordered Pseudo-tree Matching and Tree Homeomorphism
In this paper, we consider the unordered pseudo-tree matching problem, which is a problem of, given two unordered labeled trees P and T , finding all occurrences of P in T via such many-to-one matchings that preserve node labels and parent-child relationship. This problem is closely related to the tree pattern matching problem for XPath queries with child axis only. If m > w, we present an effi...
متن کاملA new tree inclusion algorithm
We consider the following tree-matching problem: Given labeled, ordered trees P and T , can P be obtained from T by deleting nodes? Deleting a node v entails removing all edges incident to v and, if v has a parent u, replacing the edges from u to v by edges from u to the children of v. The existing algorithm for this problem needs O(|T || leaves(P )|) time and O(| leaves(P )|min{DT , | leaves(T...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2021
ISSN: ['1879-2294', '0304-3975']
DOI: https://doi.org/10.1016/j.tcs.2021.06.013